package com.sponsorpay.sdk.android.publisher;

import android.app.Activity;
import android.net.Uri;
import com.sponsorpay.sdk.android.utils.SponsorPayLogger;

public class ActivityOfferWebClient extends OfferWebClient
{
  private boolean mShouldHostActivityStayOpen;

  public ActivityOfferWebClient(Activity paramActivity, boolean paramBoolean)
  {
    super(paramActivity);
    this.mShouldHostActivityStayOpen = paramBoolean;
  }

  protected void onSponsorPayExitScheme(int paramInt, String paramString)
  {
    Activity localActivity = getHostActivity();
    if (localActivity == null)
      return;
    localActivity.setResult(paramInt);
    boolean bool;
    if (paramString == null)
      bool = true;
    while (true)
    {
      SponsorPayLogger.i("OfferWebClient", "Should stay open: " + this.mShouldHostActivityStayOpen + ", will close activity: " + bool);
      if (!bool)
        break;
      localActivity.finish();
      return;
      if (this.mShouldHostActivityStayOpen);
      for (bool = false; !launchActivityWithUrl(paramString); bool = true)
        return;
    }
  }

  protected void onTargetActivityStart(String paramString)
  {
  }

  protected void processSponsorPayScheme(String paramString, Uri paramUri)
  {
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.sponsorpay.sdk.android.publisher.ActivityOfferWebClient
 * JD-Core Version:    0.6.2
 */